<%@ page import="java.util.List" %>
<%@ page import="com.foreknow.bean.Guestbook" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
</head>
<body>
username: ${sessionScope.admin.username}
    <table class="table table-hover">
        <tr>
            <td>id</td>
            <td>name</td>
            <td>phone</td>
            <td>email</td>
            <td>title</td>
            <td>content</td>
            <td>createdtime</td>
            <td>操作</td>
        </tr>

        <c:forEach var="gb" items="${sessionScope.list}">
            <tr>
                <td>${gb.id}</td>
                <td>${gb.name}</td>
                <td>${gb.phone}</td>
                <td>${gb.email}</td>
                <td>${gb.title}</td>
                <td>${gb.content}</td>
                <td>${gb.createdtime}</td>
                <td>
                    <a href="manager?id=${gb.id}&q=jump" class="btn btn-primary btn-lg active">edit</a>
                    <a href="manager?id=${gb.id}&q=delete" class="btn btn-danger btn-lg active">delete</a>
                </td>
            </tr>
        </c:forEach>
    </table>
</body>
</html>
